package com.guigu.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guigu.pojo.PayDetailInfo;
import com.guigu.pojo.PayInfo;
import com.guigu.service.PayDetailInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/payDetailInfo/")
public class PayDetailInfoController {
    @Autowired
    PayDetailInfoService payDetailInfoService;

    //分页查询
    @GetMapping("payDetailInfo.action")
    public Page<PayDetailInfo> queryAll(PayDetailInfo payDetailInfo,
                                  @RequestParam(value = "pageno",defaultValue = "1")Integer pageno,
                                  @RequestParam(value = "pagesize",defaultValue = "5")Integer pagesize){
        return payDetailInfoService.queryAll(payDetailInfo,pageno,pagesize);
    }
}
